package com.gxd.datasource;

/**
 * @Author:gxd
 * @Description:数据源枚举常量类
 * @Date: 13:13 2017/12/27
 */
public enum DataSourceEnum {

    DB1("db1", "数据源1"), 
    DB2("db2", "数据源2");

    DataSourceEnum(String key, String description) {
        this.key = key;
        this.description = description;
    }

    /** 数据源对应的key(用于在Spring配置文件中指定数据源Map中的key使用) */
    private String key;

    /** 说明 */
    private String description;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
